<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改代理商还款明细')" />
    <th:block th:include="include :: datetimepicker-css" />
        <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-AgentDeductionsKf-edit" th:object="${agentDeductionsKf}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">AGENT_DEDUCTIONS.id：</label>
                <div class="col-sm-8">
                    <input name="adId" th:field="*{adId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">扣款对象代理号：</label>
                <div class="col-sm-8">
                    <input name="agentNumK" th:field="*{agentNumK}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">扣款比例(AGENT_DEDUCTIONS配置的比例)：</label>
                <div class="col-sm-8">
                    <input name="ratio" th:field="*{ratio}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">扣款金额：</label>
                <div class="col-sm-8">
                    <input name="deductionMoney" th:field="*{deductionMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">目前已扣款金额：</label>
                <div class="col-sm-8">
                    <input name="deductionMoneyNow" th:field="*{deductionMoneyNow}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">总扣款金额：</label>
                <div class="col-sm-8">
                    <input name="deductionMoneyAll" th:field="*{deductionMoneyAll}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">扣款来源：</label>
                <div class="col-sm-8">
                    <input name="settleIdK" th:field="*{settleIdK}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">返款对象代理号：</label>
                <div class="col-sm-8">
                    <input name="agentNumF" th:field="*{agentNumF}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">返款去向：</label>
                <div class="col-sm-8">
                    <input name="settleIdF" th:field="*{settleIdF}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="createDate" th:value="${#dates.format(agentDeductionsKf.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">目前剩余扣款金额：</label>
                <div class="col-sm-8">
                    <input name="deductionMoneyBedo" th:field="*{deductionMoneyBedo}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "finance/AgentDeductionsKf";
        $("#form-AgentDeductionsKf-edit").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-AgentDeductionsKf-edit').serialize());
            }
        }

        $("input[name='createDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>